package com.joshjung.echosurf.event
{
    import flash.events.Event;

    /**
     *
     * @author jjung
     */
    public class ESCAuthenticateEvent extends Event
    {
        //---------------------------------------------------------------------
        //
        //  Static Variables
        //
        //---------------------------------------------------------------------
        public static const AUTHENTICATE : String = "authenticate";

        //---------------------------------------------------------------------
        //
        //  Variables
        //
        //---------------------------------------------------------------------
        public var clientID : int;
        public var isServer : Boolean;

        //---------------------------------------------------------------------
        //
        //  Constructor
        //
        //---------------------------------------------------------------------
        /**
         *  Constructor
         */
        public function ESCAuthenticateEvent(clientID : int, isServer : Boolean = false, bubbles : Boolean = false, cancelable : Boolean = false)
        {
            super(AUTHENTICATE, bubbles, cancelable);

            this.clientID = clientID;
            this.isServer = isServer;
        }
    }
}
